package com.net.wanjian.networkhospitalmanager.bean;

import java.util.List;

/**
 * Description:
 * Created by lidongcai on 17/5/8.
 * Email:  lidongcaiocc@163.com
 */

public class LoginReturn extends BaseResult{

    /**
     * result : 1
     * data : {"token":"","defaultUserIdentity":{"UserInfoID":"","UserIdentityID":"","EncryptUserIdentityID":"","UserIdentityTag":"","MessageTag":["",""]}}
     */

    private String result;//1为成功
    private DataBean data;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * token :
         * defaultUserIdentity : {"UserInfoID":"","UserIdentityID":"","EncryptUserIdentityID":"","UserIdentityTag":"","MessageTag":["",""]}
         */

        private String token;//需要每次更新，只要返回结果有token，传递就需要
        private DefaultUserIdentityBean defaultUserIdentity;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public DefaultUserIdentityBean getDefaultUserIdentity() {
            return defaultUserIdentity;
        }

        public void setDefaultUserIdentity(DefaultUserIdentityBean defaultUserIdentity) {
            this.defaultUserIdentity = defaultUserIdentity;
        }

        public static class DefaultUserIdentityBean {
            /**
             * UserInfoID :
             * UserIdentityID :
             * EncryptUserIdentityID :
             * UserIdentityTag :
             * MessageTag : ["",""]
             */

            private String UserInfoID;//用户id
            private String UserIdentityID;//用户身份id
            private String EncryptUserIdentityID;//加密的身份id，生成二维码
            private String UserIdentityTag;//身份标志位 1为老师 0为学生
            private List<String> MessageTag;//消息通知标签

            public String getUserInfoID() {
                return UserInfoID;
            }

            public void setUserInfoID(String UserInfoID) {
                this.UserInfoID = UserInfoID;
            }

            public String getUserIdentityID() {
                return UserIdentityID;
            }

            public void setUserIdentityID(String UserIdentityID) {
                this.UserIdentityID = UserIdentityID;
            }

            public String getEncryptUserIdentityID() {
                return EncryptUserIdentityID;
            }

            public void setEncryptUserIdentityID(String EncryptUserIdentityID) {
                this.EncryptUserIdentityID = EncryptUserIdentityID;
            }

            public String getUserIdentityTag() {
                return UserIdentityTag;
            }

            public void setUserIdentityTag(String UserIdentityTag) {
                this.UserIdentityTag = UserIdentityTag;
            }

            public List<String> getMessageTag() {
                return MessageTag;
            }

            public void setMessageTag(List<String> MessageTag) {
                this.MessageTag = MessageTag;
            }

            @Override
            public String toString() {
                return "DefaultUserIdentityBean{" +
                        "UserInfoID='" + UserInfoID + '\'' +
                        ", UserIdentityID='" + UserIdentityID + '\'' +
                        ", EncryptUserIdentityID='" + EncryptUserIdentityID + '\'' +
                        ", UserIdentityTag='" + UserIdentityTag + '\'' +
                        ", MessageTag=" + MessageTag +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "token='" + token + '\'' +
                    ", defaultUserIdentity=" + defaultUserIdentity +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "LoginReturn{" +
                "result='" + result + '\'' +
                ", data=" + data +
                '}';
    }
}
